import type {API, IPage, PageParams} from "@/type/type";
import {useGet, usePost, usePut} from "@/utils/request";

export const pageFaqAPI = (params: PageParams) => {
  return useGet<IPage<API.IFaq>>('/faq/page', params)
}


export const updateFaqAPI = (data: API.IFaq) => {
  return usePut("/faq/updateById", data)
}
